package com.ld.admin.service.usercenter;

import org.springframework.stereotype.Service;

import com.ld.common.service.ProjectBasicService;
import com.ld.shieldsb.common.web.util.Web;
import com.ld.shieldsb.dao.model.QueryModel;

/**
 * 
 * 用户中心基础服务类，@Service注解用于自动注入，定义了公共方法
 * 
 * @ClassName SysUserNoteService
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年07月02日 11:19:33
 *
 */
@Service
public class UserCenterBasicService extends ProjectBasicService {

    @Override
    public QueryModel getQueryModel() {
        QueryModel queryModel = super.getQueryModel();
        queryModel.addEq("createBy", Web.Util.getSessionUserId(request)); // 默认只能查询用户是自己的
        return queryModel;
    }
}
